package cn.dianchiyun.protocol.netty.dtu.entity;

public class Message {
 
	public final static short TAG = (short) 0xFEFD;		//协议头(长度2字节)
	public final static short VERSION = 0x0100;	//版本号(长度2字节)
	private int LENGTH;					//消息长度(整个数据包长度,2字节)
	private String DATA;				//消息内容
	public int getLENGTH() {
		return LENGTH;
	}
	public void setLENGTH(int lENGTH) {
		LENGTH = lENGTH;
	}
	public String getDATA() {
		return DATA;
	}
	public void setDATA(String dATA) {
		DATA = dATA;
	}
	@Override
	public String toString() {
		return "Message [TAG=" + TAG + ", VERSION=" + VERSION + ", LENGTH=" + LENGTH + ", DATA=" + DATA + "]";
	}
	
	
}